package com.baox.agridata.synchronous.dao;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.baox.agridata.synchronous.entity.TXDRSlaughterHouseEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TXDRSlaughterHouseMapper {


    /**
     * 根据屠宰场id查询是否存在
     *
     * @param mid
     * @return
     */
    @DS("sichuanc")
    TXDRSlaughterHouseEntity selectTXDRSlaughterHouseById(@Param("mid") String mid);


    /**
     * 新增屠宰场数据
     *
     * @param txdrSlaughterHouse
     * @return
     */
    @DS("sichuanz")
    Integer insertIntoTXDRSlaughterHouse(TXDRSlaughterHouseEntity txdrSlaughterHouse);

    /**
     * 更新屠宰场数据
     *
     * @param txdrSlaughterHouse
     * @return
     */
    @DS("sichuanz")
    Integer updateTXDRSlaughterHouseById(TXDRSlaughterHouseEntity txdrSlaughterHouse);


    /**
     * 同步四川的屠宰场到成都系统
     *
     * @return
     */
    @DS("sichuanc")
    List<TXDRSlaughterHouseEntity> selectTXDRSlaughterDataToChengDu(@Param("startTime") String startTime);

}
